package com.hw.dubbo.consumer.controller;

import com.hw.dubbo.consumer.service.interfaces.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class ConsumerController {
    @Autowired
    ConsumerService consumerService;

    @RequestMapping("getProvicerInfo")
    public Map getProvicerInfo(){
        return consumerService.getProvicerInfo();
    }
}
